package com.tenton.service;

import com.tenton.MyException.DataNotExist;
import com.tenton.pojo.Administrator;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;

/**
 * @Date: 2021/1/9
 * @Author: Tenton
 * @Description:
 */
public interface AdministratorService {
    /**
     * 登录验证
     *
     * @param adminName
     * @param pwd
     * @return
     */
    boolean getLogin(String adminName, String pwd, HttpSession session);

    /**
     * 获取管理员信息
     *
     * @param id
     * @param model
     */
    void getAdminById(Integer id, Model model);

    /**
     * 修改
     *
     * @param administrator
     * @param model
     * @throws DataNotExist
     */
    void update(Administrator administrator,Model model) throws DataNotExist;
}
